iOS Customer Service SDK Integration Instructions
The ZhiChi Customer Service SDK provides the ability for APPs to access customer service reception. By simply embedding it, you can monitor and handle customer inquiries in real time. It enables online customer reception on mobile devices without downloading the ZhiChi APP. Online Customer Service SDK has the following features:- Online consultation: Customer service and users chat in real time. They can send and receive messages such as pictures, videos, and emojis.
- Focus on users, provide smart replies, quick replies, session summaries, and invite users to leave feedback.
- Highly customizable UI.
- The new version of the iOS SDK supports iOS 11 and above.
- IOS currently only supports hyperlinks. It does not recognize other HTML tags and attributes.
- IOS requires permission for the microphone, camera, and photo library. Otherwise, some features will not work.
Process Description
Integration Process Diagram
File Description
The SDK includes (SobotOnline.framework and SobotOnline.bundle), SobotDemo, and Doc-related documentation.| File | Description |
|---|---|
| SobotOnline.framework | ZhiChi SDK Code Library |
| SobotOnline.bundle | SDK resource library, contains image files, multilingual files, colors |
| SobotOnlineService.h | Key Function Operation Class |
| SobotOnlineConfig.h | Function configuration class |
| SobotCache.h | Basic framework settings class |
Permission Description
Permissions required to use the online customer service SDK:Integration Method
Manual Integration
Download link: Download and unzip iOS_OnlineSDK, then add the necessary files SobotOnline.framework and SobotOnline.bundle to your project.CocoaPods Integration
Integrate the code by adding it to the podfile:Quick Start
Step 1 Domain Settings
[Note: To obtain appid and app_key, please contact the Zhichi after-sales team; if you use the token method to access, refer to the API documentation Get token.] Domain Name Description: * The default SaaS platform domain is: https://api.sobot.com. * If you are a Tencent Cloud service, set it to: https://ten.sobot.com. * If you are using a localized deployment, please use your own service domain name.Step 2 Initialize SDK
Method 1: Initialize the SDK using appid and appkey. Example code:Step 3 Launch Page
For details, see the Demo call code. The main call code is as follows: [Note: Before launching the page, you must call the initialization interface initWithAppid. Otherwise, it cannot be started.] Interface:| Parameter | Type | Required | Description |
|---|---|---|---|
| account | NSString | Yes | Customer service email |
| status | int | Yes | -1. Not sticky, 0. Busy, 1. Online. |
| resultBlock | Block | No | Callback for startup result status |